#pragma once

#include <QWidget>
#include "ui_LogView.h"
#include "Definitions.hpp"
#include <queue>

class LogView : public QWidget
{
	Q_OBJECT

public:
	LogView(QWidget *parent = nullptr);
	~LogView();
	void LogBase(LOG_LEVEL level, const char* msg);
private:
	Ui::LogView ui;
	std::queue<QString> mLevelLogs[LOG_LEVEL_MAX];
	std::queue<std::pair<LOG_LEVEL, QString>> mAllLogs;
};
